﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Logs
{
    /// <summary>
    /// 短信日志
    /// </summary>
    [Table("SMSLogs")]
    public class SMSLog : Entity<int>, IHasCreationTime
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [StringLength(16)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [StringLength(128)]
        public string Content { get; set; }

        public DateTime CreationTime { get; set; }
    }
}
